<%
Dim tabSelected
tabSelected = "contactus"Dim titletitle="Adecco Singapore | Contact Us | Submit Enquiry"Dim meta_descmeta_desc="Submit your enquiry to Adecco Singapore whether you are a candidate, a journalist, or an employer. Adecco is happy to receive your questions and feedback"Dim meta_keysmeta_keys=""dim breadcrumbreadcrum="<a href='index.asp'> Home </a> ><a href='contactus.asp'> Contact us </a> > <span class='active'>  Submit Enquiry </span>"
%>
<!--#include file="inc/config.asp" -->
<!--#include file="inc/header.asp" -->
<!--#include file="contactus_leftmenu.asp" -->
<div class="threeCols">
    <br />
    <h1>
        Contact Us</h1>
    <br />
    <%
If request.QueryString("action") = "finish" Then
    %>
    <div class="textContainer">
        <h3>
            Enquiry successfully sent!</h3>
        <p>
            Thank you for sending us your queries. We will get in touch with you as soon as
            possible.
        </p>
    </div>
    <%
Else
    %>
    <style type="text/css">
    .formHeader
    {
        font-weight:bold;
    }
    .tbLong
    {
        width:350px;
        border:solid 1px #D0CBBF;
    }
    .tbMed
    {
	    width: 250px;
	    border:solid 1px #D0CBBF;
    }
    .tbShort
    {
	    width: 100px;
	    border:solid 1px #D0CBBF;
    }
    .lbLong
    {
        width:350px;
        Height:100px;
        border:solid 1px #D0CBBF;
    }
</style>

    <script type="text/javascript">
        function isMsgTypeEmpty()
        {
            var radioObj = document.inqForm.rbType;
            for( i = 0; i < radioObj.length; i++ )
            {
                if (radioObj[i].checked == true)
                {
                    return false;
                }
            }
            return true;
        }

        function validateForm()
        {

            var msg = " Cannot be empty."
            if (isMsgTypeEmpty())
            {
                alert("Enquiry Type cannot be empty");
                return false;
            }
            else if (trim(document.getElementById("tbSubject").value) == "")
            {
                alert("Subject" + msg);
                document.getElementById("tbSubject").focus();
                return false;
            }
            else if (trim(document.getElementById("tbMessage").value) == "")
            {
                alert("Details" + msg);
                document.getElementById("tbMessage").focus();
                return false;
            }
            else if (trim(document.getElementById("tbName").value) == "")
            {
                alert("Name" + msg);
                document.getElementById("tbName").focus();
                return false;
            }
            else if (trim(document.getElementById("tbContact").value) == "")
            {
                alert("Contact" + msg);
                document.getElementById("tbContact").focus();
                return false;

                //regex to check digits
            }
            else if (trim(document.getElementById("tbEmail").value) == "")
            {
                alert("Email" + msg);
                document.getElementById("tbEmail").focus();
                return false;
            }
            else if (!checkemail(trim(document.getElementById("tbEmail").value)))
            {
                alert("Please input a valid email address!")
                return false
            }
            else
            {
                return true;
            }
        }

        var testresults
        function checkemail(val)
        {
            var str=val;
            var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

            if (filter.test(str))
                testresults=true
            else
            {
                testresults=false
            }
            return (testresults)
        }
    </script>

    <div class="textContainer">
        <h3>
            Submit Enquiry</h3>
        <p>
            Thank you for your interest in contacting  <a href='index.asp' target="_blank" class='inLineLink'>Adecco Singapore</a> . 			We are most happy to answer any queries you may have. Please choose an option below:</p>
    </div>
    <div class="A05">
        <h3>
            Enquiry Form</h3>
        <br />
    </div>
    <div class="textContainer">
        <div class="cTable">
            <form name="inqForm" action="<%=CandidateProfileMgr %>SubmitInq.aspx"
                onsubmit="javascript:return validateForm()" method="post">
                <table width="98%" cellpadding="0" cellspacing="0" style="font-size: 10pt;">
                    <tr>
                        <td colspan="2">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <input name="rbType" id="rbACP" type="radio" value="ACP" <% If lcase(request.QueryString("type"))="acp" Then %>
                                            checked="checked" <%End If%> />
                                        <label for="rbACP">
                                            Athlete Career Programme</label>
                                    </td>
                                    <td style="width: 30%">
                                        <input name="rbType" id="rbCareers" type="radio" value="Careers" <% If lcase(request.QueryString("type"))="careers" Then %>
                                            checked="checked" <%End If%> />
                                        <label for="rbCareers">
                                            Careers @ Adecco</label>
                                    </td>
                                    <td style="width: 30%">
                                        <input name="rbType" id="rbMedia" type="radio" value="Media" <% If lcase(request.QueryString("type"))="media" Then %>
                                            checked="checked" <%End If%> />
                                        <label for="rbMedia">
                                            Media Enquiries</label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input name="rbType" id="rbBizInq" type="radio" value="BizInq" <% If lcase(request.QueryString("type"))="bizinq" Then %>
                                            checked="checked" <%End If%> />
                                        <label for="rbBizInq">
                                            Business Enquiries</label>
                                    </td>
                                    <td>
                                        <input name="rbType" id="rbITHelp" type="radio" value="Helpdesk" <% If lcase(request.QueryString("type"))="helpdesk" Then %>
                                            checked="checked" <%End If%> />
                                        <label for="rbITHelp">
                                            IT Helpdesk</label>
                                    </td>
                                    <td>
                                        <input name="rbType" id="rbFeedback" type="radio" value="Feedback" <% If lcase(request.QueryString("type"))="feedback" Then %>
                                            checked="checked" <%End If%> />
                                        <label for="rbFeedback">
                                            Feedback</label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input name="rbType" id="rbCandInq" type="radio" value="CandInq" <% If lcase(request.QueryString("type"))="candinq" Then %>
                                            checked="checked" <%End If%> />
                                        <label for="rbCandInq">
                                            Candidate Enquiries</label>
                                    </td>
                                    <td>
                                        <input name="rbType" id="rbOthers" type="radio" value="Others" <% If lcase(request.QueryString("type"))="others" Then %>
                                            checked="checked" <%End If%> />
                                        <label for="rbOthers">
                                            Others</label>
                                    </td>
				    <td>&nbsp;
                                        
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 30%">&nbsp;
                            </td>
                        <td>&nbsp;
                            </td>
                    </tr>
                    <tr>
                        <td class="formHeader">
                            <label for="tbSubject">
                                Subject
                            </label>
                        </td>
                        <td>
                            <input name="tbSubject" id="tbSubject" type="text" class="tbLong" maxlength="200" /></td>
                    </tr>
                    <tr>
                        <td class="formHeader">
                            <label for="tbMessage">
                                Details
                            </label>
                        </td>
                        <td>
                            
                                <textarea name="tbMessage" id="tbMessage"  class="lbLong"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td class="formHeader">
                            <label for="tbName">
                            </label>
                            Name
                        </td>
                        <td>
                            <input name="tbName" id="tbName" type="text" class="tbMed" /></td>
                    </tr>
                    <tr>
                        <td class="formHeader">
                            <label for="tbCompany">
                                Company (if applicable)
                            </label>
                        </td>
                        <td>
                            <input name="tbCompany" id="tbCompany" type="text" class="tbMed" /></td>
                    </tr>
                    <tr>
                        <td class="formHeader">
                            <label for="tbContact">
                                Contact
                            </label>
                        </td>
                        <td>
                            <input name="tbContact" id="tbContact" type="text" class="tbShort" /></td>
                    </tr>
                    <tr>
                        <td class="formHeader">
                            <label for="tbEmail">
                                Email
                            </label>
                        </td>
                        <td>
                            <input name="tbEmail" id="tbEmail" type="text" class="tbMed" /></td>
                    </tr>
                    <tr>
                        <td valign="top">&nbsp;
                            </td>
                        <td>&nbsp;
                            </td>
                    </tr>
                    <tr>
                        <td valign="top">&nbsp;
                            </td>
                        <td>
                            <input type="image" src="asset/images/btnSubmit.png" alt="Submit" onmouseout="this.src='asset/images/btnSubmit.png'"
                                onmouseover="this.src='asset/images/btnSubmit_roll.png'" title="Submit" />&nbsp;
                            <img src="asset/images/btnReset.png" alt="Reset" onmouseout="this.src='asset/images/btnReset.png'"
                                onmouseover="this.src='asset/images/btnReset_roll.png'" title="Reset" /></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <br />
    <br />
</div>
<%
End If
%>
<!--#include file="inc/footer.asp" -->
